import {
	request
} from '@/utils/request'
/**
 *  找活动
 * @returns {Promise}  获取获取活动
 */
export const ActivityList = (lang_code = 'zh') => {
	return request({
		url: '/activity/activityList',
		method: 'GET',
		params: { // GET参数应该放在params中
			lang_code,
		}
	})
}
/**
 *  报名
 * @returns {Promise}  报名
 */
export const Signup = (data) => {
	return request({
		url: '/activity/signup',
		method: 'POST',
		data: data
	})
}
/**
 *  找活动
 * @returns {Promise}  获取活动详情
 */
export const ActivityDetail = (activity_id, lang_code = 'zh') => {
	return request({
		url: '/activity/activityDetail',
		method: 'GET',
		params: { // GET参数应该放在params中
			lang_code,
			activity_id
		}
	})
}